//
//  ZZMyLotteryController.m
//  NetesaeLottery
//
//  Created by 周英培 on 16/8/2.
//  Copyright © 2016年 周英培. All rights reserved.
//

#import "ZZMyLotteryController.h"
#import "ZZSettingController.h"
@interface ZZMyLotteryController ()

@property (nonatomic,weak) IBOutlet UIButton *registerBtn;

@end

@implementation ZZMyLotteryController

- (void)viewDidLoad {
    
    [super viewDidLoad];
    
    //MARK:通过代码拉伸图片
    UIImage *img = [UIImage imageNamed:@"RedButtonPressed"];
    
    img = [img stretchableImageWithLeftCapWidth:img.size.width *0.5 topCapHeight:img.size.height *0.5];
    
    [self.registerBtn setBackgroundImage:[UIImage imageNamed:@"RedButton"] forState:UIControlStateNormal];
    
    [self.registerBtn setBackgroundImage:img forState:UIControlStateSelected];

}

- (IBAction)settingBtnClick:(id)sender {

    ZZSettingController *setVC = [[ZZSettingController alloc] init];
    
    setVC.navigationItem.title = @"设置";
    
    setVC.plistName = @"HMSetting";
    
    [self.navigationController pushViewController:setVC animated:YES];
    

}

@end
